package com.bsc.rtc.lib.libraries.SingltonDemo;

public class TestSingllton {
    private static TestSingllton ourInstance =null;

    private TestSingllton() {
    }
    static TestSingllton getInstance() {
        if (ourInstance==null){
            synchronized (TestSingllton.class){
                if (ourInstance==null){
                    ourInstance=new TestSingllton();
                }
            }
        }
        return ourInstance;
    }

}
